package com.read.mapper;

import com.read.dto.params.NovelNameParamsDto;
import com.read.dto.result.NovelNameResultDto;
import com.read.entity.NovelName;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NovelNameMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(NovelName record);

    int insertSelective(NovelName record);

    NovelName selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(NovelName record);

    int updateByPrimaryKey(NovelName record);

    /**
     * @description 根据条件查询小说
     * @author sh-sunb6
     * @date 2019-02-19 15:12
     * @params novelType、title、userName
     */
    List<NovelNameResultDto> selectNovelByParams(NovelNameParamsDto paramsDto);

    /**
     * @description 根据小说id查询信息
     * @author sh-sunb6
     * @date 2019-03-10 16:12
     */
    NovelNameResultDto selectNovelInfoByNovelId(@Param("novelId") int novelId);
}